home *** CD-ROM | disk | FTP | other *** search
/ Floppyshop 2 / Floppyshop - 2.zip / Floppyshop - 2.iso / diskmags / 0022-3.564 / dmg-0080 / 788.txt < prev    next >
Text File  |  1997-04-16  |  9KB  |  207 lines

  1. =========================================================================
  2.  
  3. INFO-ATARI16 Digest         Mon, 11 Dec 89       Volume 89 : Issue 788
  4.  
  5. Today's Topics:
  6.                                AES bug?
  7.           Anybody tried to compile SOZOBON C under MS-DOS ?
  8.                              Doesn't work
  9.                              Games for ST
  10.                      Missing AR.H from Sozobon C
  11.                         MODULA-2 Factor Help!!
  12.                             Shareware MAC
  13.                        tv show and the Mega ST
  14.                    Wanted: Restaurant Management SW
  15. ----------------------------------------------------------------------
  16.  
  17. Date: 11 Dec 89 12:08:04 GMT
  18. From: bucsb!harryk@CS.BU.EDU  (_harryk)
  19. Subject: AES bug?
  20. Message-ID: <138@bucsb.UUCP>
  21.  
  22.     Have I found an AES's bug or i don't know what i'm doing?
  23.  
  24.     Here is the problem:
  25.  
  26.       I'm writing an ST application which is supposed to use KEYBORD-
  27.       EQUIVALENTS for almost every entry of the menus. So, (naturaly?)
  28.       i'm using the function evnt_multi() in order to handle MESSAGE
  29.       and KEYBOARD events. The thing works ok except one annoying pro-
  30.       blem:
  31.            If i press a key-equivalent, while any of the pull-down
  32.         menus is open, i'm getting the action that corresponds  to
  33.         that keyboard-equivalent( i.e using the mouse i open the 'File'
  34.         menu and i place the mouse pointer on the entry 'Open', which
  35.         is becoming "selected"....now, instead of clicking on 'Open',
  36.         I press Ctrl-A (which is the equivalent for 'About xxxx' under
  37.         the menu title 'Desk'). Well, what happens is that the dilogue
  38.         box for the 'About' selection appears on the screen; and after
  39.         I exit the dialogue box, i'm getting the file selector). The
  40.         correct response should be NEITHER dialogue-box NOR file selector!
  41.  
  42.  
  43.           The code i'm using is the following:
  44.  
  45.  
  46.         int  dummy, keypressed, msg_buffer[8], event;
  47.         OBJECT *menutree;
  48.  
  49.         .
  50.         .
  51.         .
  52.         for(;;)?
  53.           menu_bar(menutree, 1);          /* enable the menu bar */
  54.           event = evnt_multi( MN_SELECTED | MU_KEYBD,
  55.                               0,0,0,      /* clicks, button, state */
  56.                               0, 0,0,0,0, /* inrec, x1, y1, w1, h1 */
  57.                               0, 0,0,0,0, /* outrec,x2, y2, w2, h2 */
  58.                               msg_buffer, /* message buffer */
  59.                               dummy, dummy,   /* lowtime, hightime */
  60.                               &dummy, &dummy, /* mouse coordinates */
  61.                               &dummy, &dummy, /* bptr, kptr */
  62.                               &keypressed,    /* i want this one */
  63.                               &dummy          /* times */
  64.                             );
  65.  
  66.           menu_bar(menutree, 0);          /* disable the menu bar */
  67.           if ( event & MU_KEYBD )
  68.             switch (keypressed)?
  69.               ........
  70.               /* case quit: rsrc_free(); appl_exit(); exit(0); */
  71.             ?
  72.           else if (event & MN_SELECTED)?  /* or just ... else */
  73.             switch (msg_buffer[4])?
  74.               ........
  75.               /* case quit: rsrc_free(); appl_exit(); exit(0); */ */
  76.             ?
  77.        ? /* for */
  78.  
  79.  
  80.        The C compiler i'm using is MWC v3.0.9 but i don't think it matters
  81.        A friend of mine has Laser C v2.0 which has some AES examples in one
  82.        of the original disks! We tried to see what happens with 2 of these
  83.        examples, and we found out that the problem ALSO exists in both of them.
  84.        We also recompiled my program with Laser C, and nothing good happened!
  85.        This makes me think that it may be an undocumented AES bug(?).
  86.            On the other hand, all the programs i've seen using keyboard equi-
  87.        valents, do not have this problem!
  88.          The strange part is, that this is exactly what evnt_multi() is
  89.        supposed to do! When a menu is opened (but no entry has been selected)
  90.        the application sends NO message to the buffer..so evnt_multi() is
  91.        still active, waiting for a KEYBOARD or MENU event to occur! Thus if
  92.        a key is pressed, even if the menu is still opened, evnt_mutli()
  93.        writes the keyboard message to the buffer and terminates. ....And how
  94.        the heck am i supposed to change this behavior? How do the others do
  95.        it?   You, guys, are my last hope! If i don't get any answer i'm gonna
  96.        remove the keyboard equivalents from the program (or i may leave it as
  97.        it is right now)...
  98.          Anyway, if someone out there knows the answer, PLEAAAAASEEEEE, let me
  99.        know........I may give him a free copy of my program (what a guy, he?)
  100.  
  101.  
  102.         And something else. What's your reaction on the file selector? Why am
  103.       I getting the file selector after the dialogue box? I cannot give any
  104.       logical explanation. I mean, i just talked about evnt_multi() and key-
  105.       equivalents..but why is it giving me the file selector? It should be
  106.       done after the dialogue box, right?  (note that the file selector is
  107.       supposed to be activated with the entry 'Open', but still i cannot
  108.       explain it!)
  109.  
  110.                                                         thanks a lot!!!!
  111.  
  112.  
  113.                  Harry Karayiannis
  114.                  3rd Year Computer Science
  115.                  Boston University
  116.  
  117.  
  118. -------------------------------------- SORY FOR ANIE MISPELSS------------------
  119.                                         I'm just another Greek!!
  120.  
  121. ------------------------------
  122.  
  123. Date: 11 Dec 89 10:59:45 GMT
  124. From: mcsun!hp4nl!tnoibbc!remco@uunet.uu.net  (Remco Bruyne)
  125. Su--------------
  126.  
  127. Date: 1 Dec 89 19:01:24 GMT
  128. From: thelake!steve@UMN-CS.CS.UMN.EDU  (Steve Yelvington)
  129. Subject: Trash, Disks, etc.
  130. Message-ID: <1101891301242836@thelake.UUCP>
  131.  
  132. In article <9911@saturn.ucsc.edu>,
  133.      dstr012@ucscg.UCSC.EDU (10003012) writes ...
  134.  
  135. >Does anyone out there have or know where I can get a program to change
  136. >the Trash and file cabinet icons on the desktop?  The old desktop is getting
  137. >pretty boring and I am due for a change.  Thanks.
  138. >
  139. >         Roman Baker
  140.  
  141. NeoDesk (from your local dealer, or $31.95 from E. Arthur Brown Co.,
  142. 612-762-8847) does this and more. Each file .ext can be associated with
  143. its own icon. Program icons can be dragged out onto the Desktop, so you
  144. can click and go without having to navigate through folders. It also
  145. provides "hot keys," a printer queue, faster windows and even a digital
  146. clock, all in 21K of RAM. It's what the Desktop should have been all along.
  147.    -- Steve Yelvington, up at the lake in Minnesota
  148.   ... pwcs.StPaul.GOV!stag!thelake!steve             (UUCP)
  149.  
  150.  
  151. Hello,
  152.  
  153. Has anybody tried to compile Sozobon C under MS-DOS ? Compiling
  154. with Microsoft C 5.0 seems to work on first sight, but when you
  155. run the compiler the following error occurs:
  156.  
  157.     in main.c (from HCC):
  158.         if(sizeof(NODE) & 3) ?
  159.             printf("sizeof NODE not mult of 4\n");
  160.             exit(1);
  161.         ?
  162.  
  163.  
  164. Any ideas? Please respond via email, because I don't read comp.sys.ibm.pc.
  165.  
  166.  
  167. Thanks in advance, Remco Bruijne
  168. --
  169. ------------------------------------------------------------------
  170.  Remco Bruijne      USENET: remco@tnoibbc    PHONE: +31 15 606437
  171. ------------------------------------------------------------------
  172.  
  173. ------------------------------
  174.  
  175. Date: 10 Dec 89 22:08:47 GMT
  176. From: cbmvax!atha!rwa@rutgers.edu  (Ross Alexander)
  177. Subject: Doesn't work
  178. Message-ID: <1303@atha.AthabascaU.CA>
  179.  
  180. stephen@oahu.cs.ucla.edu (Steve Whitney) writes:
  181.  
  182. >In article <8912050807.AA13706@ucbvax.Berkeley.EDU>
  183.  V053QHYX@UBVMSC.CC.BUFFALO.EDU writes:
  184. >>
  185. >>Add to the list of programs that dont work with tos 1.4 :
  186. >>DBMAN 5.02 and Timeworks destop publisher....
  187. >I don't know what version of Timeworks DTP you're using, but mine works _fine_
  188. >with TOS 1.4.  I bought mine last Spring so perhaps they fixed it.
  189. And my 2 year old version runs fine, as well (ROM 1.4 TOS, 2.5 Mbytes,
  190. Revision D mainboard).  Try turning off all your .acc's for a starter.
  191.  
  192.         Ross
  193.  
  194. ------------------------------
  195.  
  196. Date: Mon, 11 Dec 89 03:27 EST
  197. From: EDGINGTC%Wabash.Bitnet@Forsythe.Stanford.EDU
  198. Subject: Games for ST
  199.  
  200. I can't decide what game I should ask for for Christmas for my ST.  Tell me
  201. what your favorite games are and why so I can make the best choice.
  202.  
  203. ------------------------------------------------------------------------------
  204. |  ______                        |  ATARI IS NO. 1  |        Chris Edgington |
  205. | /      \  / \                  |      * * *       |     Wabash College '92 |
  206. | ARN.MARIST>
  207.